import { base } from '@/config'
import http from '@/utils/request'

// 协议设置
const tcp = {
  getAgreementList: () => {
    return http.get(`${base.platform}/agreement/getAgreementList`)
  },
  update: params => {
    return http.postJson(`${base.platform}/agreement/editAgreement`, params)
  }
}

export default tcp
